//
//  MeetingView.m
//  PDA巡检
//
//  Created by Vencoo on 14-2-28.
//  Copyright (c) 2014年 Vencoo. All rights reserved.
//

#import "MeetingView.h"
#import "MeetViewCell.h"
#import "MeetingViewController.h"
#import "DetailmeetingViewController.h"
@implementation MeetingView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        
    }
    return self;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return _receiveArr.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *identifier = @"Mycell";
    MeetViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (!cell) {
        cell = [[NSBundle mainBundle]loadNibNamed:@"MeetViewCell" owner:nil options:nil][0];
    }
    cell.activeNameLb.text = _receiveArr[indexPath.row][@"eventName"];
    cell.activeTimeLb.text = _receiveArr[indexPath.row][@"eventFromDate"];
    cell.activePlaceLb.text = _receiveArr[indexPath.row][@"place"];
    return cell;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 85;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    DetailmeetingViewController *detailV = [DetailmeetingViewController new];
    [self.myDele.navigationController pushViewController:detailV animated:YES];
    detailV.delegate = self;
    [detailV release];
}
- (void)dealloc {
    [_titleLbs release];
    [_detailViews release];
    [super dealloc];
}
@end
